package com.tchintech.pay.delegate;

import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.TextView;

import butterknife.Bind;
import com.tchintech.pay.R;
import com.tchintech.pay.frame.view.AppDelegate;

/**
 * Created by Administrator on 2017/7/3 0003.
 */

public class LoginDelegate extends AppDelegate {

    @Bind(R.id.login_iv_logo)
    ImageView loginIvLogo;
    @Bind(R.id.login_tv_tips)
    TextView loginTvTips;
    @Bind(R.id.login_ed_phoneNumber)
    EditText loginEdPhoneNumber;
    @Bind(R.id.login_ed_password)
    EditText loginEdPassword;
    @Bind(R.id.login_bt_login)
    Button loginBtLogin;
    @Bind(R.id.login_bt_register)
    TextView loginBtRegister;
    @Bind(R.id.login_bt_lostPassword)
    TextView loginBtLostPassword;
    @Bind(R.id.bt_test)
    Button bt_test;

    @Override
    public int getRootLayoutId() {
        return R.layout.activity_account;
    }

    public String  getText(int id){
        String  text="";
        try{
            EditText et=get(id);
            text=et.getText().toString().trim();
        }catch(Exception e){
            e.printStackTrace();
        }
        return  text;
    };
    public EditText getEdittView(int id){
        EditText text=null;
        try{
            text=get(id);
        }catch (Exception e){
            e.printStackTrace();
        }
        return  text;
    };

    public TextView getTextViews(int id){
        TextView text=null;
        return  text=get(id);
    }

}
